#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
char* my_strstr(char* str1, char* str2)
{
	char* cp = str1;
	char *s1 = NULL;
	char* s2 = NULL;
	while (*cp)
	{
		s1 = cp;
		s2 = str2;
		while (*s1 == *s2&&(*s1&&*s2))
		{
			s1++;
			s2++;
		}
		if (*s2 == '\0')
		{
			return cp;
		}
		cp++;
	}
	return NULL;
}
int main()
{
	char str1[5] = "basd";
	char str2[5] = "asd";
	printf("%s", my_strstr(str1, str2));
	return 0;
}